//
//  strategyTableViewCell.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/23.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "strategyTableViewCell.h"
#import "PublicClass.h"
@implementation strategyTableViewCell
//- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
//    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
//    if (self) {
//        [self setAboutMyInvesment];
//    }
//    return self;
//}
//- (void)setAboutMyInvesment{
//    [self.contentView addSubview:self.titleLabel];
//    [self.contentView addSubview:self.timeLabel];
//}
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self load];
    }
    return self;
}
-(void)load{
    [self.contentView addSubview:self.titleLabel];
    [self.contentView addSubview:self.timeLabel];
    [self.contentView addSubview:self.artLabel];
    [self.contentView addSubview:self.Image];

}
- (UILabel *)artLabel{
    if (!_artLabel) {
        _artLabel = [[UILabel alloc] init];
        _artLabel.frame = CGRectMake(ADAPTATION_WIDTH(60), ADAPTATION_HEIGHT(10), ADAPTATION_WIDTH(120), ADAPTATION_HEIGHT(15));
        _artLabel.font = [UIFont systemFontOfSize:15];
        _artLabel.textColor = [UIColor blackColor];
        _artLabel.textAlignment = NSTextAlignmentLeft;
//        _artLabel.numberOfLines = 0;
        _artLabel.backgroundColor = [UIColor clearColor];
    }
    return _artLabel;
}
- (UIImageView *)Image{
    if (!_Image) {
        _Image = [[UIImageView alloc] init];
        _Image.frame = CGRectMake(ADAPTATION_WIDTH(10), ADAPTATION_HEIGHT(10), ADAPTATION_WIDTH(40), ADAPTATION_WIDTH(40));
        _Image.backgroundColor = [UIColor clearColor];
    }
    return _Image;
}
- (UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] init];
        _titleLabel.frame = CGRectMake(ADAPTATION_WIDTH(60), ADAPTATION_HEIGHT(37), ADAPTATION_WIDTH(305), ADAPTATION_HEIGHT(14));
        _titleLabel.font = [UIFont systemFontOfSize:13];
        _titleLabel.textColor = [UIColor blackColor];
        _titleLabel.textAlignment = NSTextAlignmentLeft;
        _titleLabel.numberOfLines = 0;
        _titleLabel.backgroundColor = [UIColor clearColor];
    }
    return _titleLabel;
}
- (UILabel *)timeLabel{
    if (!_timeLabel) {
        _timeLabel = [[UILabel alloc]initWithFrame:CGRectMake(ADAPTATION_WIDTH(285), ADAPTATION_HEIGHT(10), ADAPTATION_WIDTH(80), 14/H)];
        _timeLabel.font = [UIFont systemFontOfSize:14];
        _timeLabel.textAlignment = NSTextAlignmentRight;
        _timeLabel.textColor = [UIColor lightGrayColor];
        _timeLabel.backgroundColor = [UIColor clearColor];
    }
    return _timeLabel;
}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}



@end
